/*
 * @Author: xuxu12138 1718324422@qq.com
 * @Date: 2023-09-11 08:01:01
 * @LastEditors: xuxu12138 1718324422@qq.com
 * @LastEditTime: 2023-11-24 09:56:14
 * @FilePath: /things-admin/src/base/api/Integral.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import {request} from '@/base/Request';
import {Integral} from '@/base/model/Integral';
import qs from 'qs'

//查询所有积分信息
export const findAll = () => request.getArray(Integral, '/api/sign-points/findAll')

//新增积分
export const AddPoint = (params:{day:Number,point:Number}) =>request.post(Integral,'/api/sign-points',qs.stringify(params) )

//删除
export const deleteId = (params:{id:Number}) =>request.delete('/api/sign-points/'+params.id)

//数据查询
export const searchMsg = (params:{id:Number}) =>request.get(Integral,'/api/sign-points/'+params.id)

//修改信息
export const updateMsg = (params:{day:Number,point:Number,id:Number}) => request.put(Integral,'/api/sign-points',qs.stringify(params))